package com.itheima.course.design.entity;

public class Enrollment {
    private String id;
    private String studentId;
    private String courseCode;
    private String displayCourseCode;
    // 构造方法
    public Enrollment() {}

    public Enrollment(String id, String studentId, String courseCode) {
        this.id = id;
        this.studentId = studentId;
        this.courseCode = courseCode;
    }

    // Getter和Setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    // 获取显示用的课程代码
    public String getDisplayCourseCode() {
        return displayCourseCode;
    }

    // 设置显示用的课程代码
    public void setDisplayCourseCode(String displayCourseCode) {
        this.displayCourseCode = displayCourseCode;
    }
}